package com.gyz.cfmall.search.feign;

import com.gyz.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author: gongyuzhuo
 * @since: 2023/3/29 07:47
 * @description:
 */
@FeignClient("cfmall-product")
public interface ProductFeignService {
    @GetMapping("/product/attr/info/{attrId}")
    R attrInfo(@PathVariable("attrId") Long attrId);

    @GetMapping("/product/brand/info/ids")
    R brandsInfo(@RequestParam("brandIds") List<Long> brandIds);
}
